package com.jilefojing.beans.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年07月23日 02时21分15秒
 */
@Table(name = "r_favorite_source")
public class RFavoriteSource extends BasePo {
	/**
	 * 属性查询列表
	 */
	public static final String FIELD_ID = "id";
	public static final String FIELD_ITEMTYPE = "itemType";
	public static final String FIELD_ITEMID = "itemId";
	public static final String FIELD_FAVORITEID = "favoriteId";
	public static final String FIELD_CREATETIME = "createTime";
	public static final String FIELD_USERID = "userId";
	/**
	 * 列名查询列表
	 */
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_ITEM_TYPE = "item_type";
	public static final String COLUMN_ITEM_ID = "item_id";
	public static final String COLUMN_FAVORITE_ID = "favorite_id";
	public static final String COLUMN_CREATE_TIME = "create_time";
	public static final String COLUMN_USER_ID = "user_id";

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;
	@Column(name = "item_type")
	private Short itemType;
	@Column(name = "item_id")
	private Long itemId;
	@Column(name = "favorite_id")
	private Long favoriteId;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "user_id")
	private Long userId;

	/**
	 * 获取 主键
	 * 
	 * @return id - 主键
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置 主键
	 * 
	 * @param id
	 *            - 主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取 收藏资源类型
	 * 
	 * @return itemType - 收藏资源类型
	 */
	public Short getItemType() {
		return itemType;
	}

	/**
	 * 设置 收藏资源类型
	 * 
	 * @param itemType
	 *            - 收藏资源类型
	 */
	public void setItemType(Short itemType) {
		this.itemType = itemType;
	}

	/**
	 * 获取 资源id
	 * 
	 * @return itemId - 资源id
	 */
	public Long getItemId() {
		return itemId;
	}

	/**
	 * 设置 资源id
	 * 
	 * @param itemId
	 *            - 资源id
	 */
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	/**
	 * 获取 收藏夹id
	 * 
	 * @return favoriteId - 收藏夹id
	 */
	public Long getFavoriteId() {
		return favoriteId;
	}

	/**
	 * 设置 收藏夹id
	 * 
	 * @param favoriteId
	 *            - 收藏夹id
	 */
	public void setFavoriteId(Long favoriteId) {
		this.favoriteId = favoriteId;
	}

	/**
	 * 获取 创建时间
	 * 
	 * @return createTime - 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置 创建时间
	 * 
	 * @param createTime
	 *            - 创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取 用户
	 * 
	 * @return userId - 用户
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * 设置 用户
	 * 
	 * @param userId
	 *            - 用户
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
}